<template>
    <div>
        <h2>
            <slot name="user" :user="user">
                {{user.firstName}}
            </slot>
        </h2>
        <h3>
            <slot name="age" :age="age">
                12
            </slot>
        </h3>
        <h4>
            <slot name="height" :height="height">
                170cm
            </slot>
        </h4>
        <h5>
            <slot name="weight" :weight="weight">60kg</slot>
        </h5>
    </div>
</template>
<script>
export default {
    data(){
        return{
            user:{
                firstName:'xu',
                lastName:'hui'
            },
            age:13,
            height:'169cm',
            weight:'50kg'
        }
    },
}
</script>

